package com.russell.pms.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

import org.apache.commons.lang3.builder.EqualsBuilder;

@XmlRootElement(name = "maintenance")
public class Maintenance extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1952725891913114403L;
	private int id;
	private String description;
	private int prop_id;
	private int vendor_id;
	private BigDecimal amount;
	private Date date;

	@Override
	public boolean equals(Object o) {
		if (!(o instanceof Maintenance)) {
			return false;
		}
		Maintenance rhs = (Maintenance) o;
		return new EqualsBuilder().append(this.id, rhs.id).isEquals();
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public Date getDate() {
		return date;
	}

	public String getDescription() {
		return description;
	}

	public int getId() {
		return id;
	}

	public int getProp_id() {
		return prop_id;
	}

	public int getVendor_id() {
		return vendor_id;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setProp_id(int prop_id) {
		this.prop_id = prop_id;
	}

	public void setVendor_id(int vendor_id) {
		this.vendor_id = vendor_id;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
